<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>商品库</title>
<link rel="stylesheet" href="/Public/Admin/css/main.css"/>
</head>
<body>
<div class="view-content">
	<div class="good-lib-wrapper">
		<div class="view-top">
			<div class="SearchCon">
				<div class="SearchTxt">
					<form action="<?php echo U('Admin/Product/index');?>" method="get" id="myform">
						<div class="SearchTxtList">
							<div class="SearchPre">
								<div class="NameId" value = "0">商品ID</div>
								<div class="NameIdList NameIndex">
									<ul>
										<li class="active" value ="0">商品ID</li>
										<li value = "1" class="three-down">商品类目</li>
										<li value = "2">商品名称</li>
									</ul>
								</div>
							</div>
						</div>
						<div class="SearchLabel">
							<input type="text" class="SLName" placeholder="请输入搜索内容"/>
							<input type="text" readonly = "readonly" class="ThreeConTop" placeholder="请选择商品类名" value = "" DateV = "0" style="display: none;"/>
							<input type="hidden" name="typeid" value="0"/>
							<input type="hidden" name="keywords" value=""/>
							<div class="ThreeList">
								<div class="tl_s1 White">
									<ul>
										<?php if(is_array($getclass)): foreach($getclass as $key=>$one): ?><li <?php if(!empty($one['_data'])): ?>class="active"<?php endif; ?>>
											<span class="blue" alt="<?php echo ($one['id']); ?>"><?php echo ($one['name']); ?></span>
											<?php if(!empty($one['_data'])): ?><div class="White tl_s2">
													<ul>
														<?php if(is_array($one['_data'])): foreach($one['_data'] as $key=>$two): ?><li <?php if(!empty($two['_data'])): ?>class="active"<?php endif; ?>><span class="blue" alt="<?php echo ($two['id']); ?>"><?php echo ($two['name']); ?></span>
															<?php if(!empty($two['_data'])): ?><div class="White tl_s3">
																	<ul>
																		<?php if(is_array($two['_data'])): foreach($two['_data'] as $key=>$three): ?><li><span alt="<?php echo ($three['id']); ?>"><?php echo ($three['name']); ?></span></li><?php endforeach; endif; ?>
																	</ul>
																</div><?php endif; ?>
															</li><?php endforeach; endif; ?>
													</ul>
												</div><?php endif; ?>
											</li><?php endforeach; endif; ?>
									</ul>
								</div>
							</div>
						</div>
						<button type="button" class="Product_SLBtns SLBtns">查询</button>
					</form>
				</div>
			</div>

			<div class="AppendView">
				<i>+</i>
				<em>添加商品</em>
			</div>
		</div>
		<div class="view-con">
			<table width="100%" cellpadding="0" cellspacing="0" border="0" class="el-table">
				<thead>
				<tr>
					<th class="el-table_1_column_1">
						<div class="cell">商品ID</div>
					</th>
					<th class="el-table_1_column_2">
						<div class="cell">商品类目</div>
					</th>
					<th class="el-table_1_column_3">
						<div class="cell">商品名称</div>
					</th>
					<th class="el-table_1_column_4">
						<div class="cell">上次编辑时间</div>
					</th>
					<th class="el-table_1_column_5">
						<div class="cell">操作</div>
					</th>
				</tr>
				</thead>
				<tbody class="AppenTr">
					<?php if(is_array($items)): foreach($items as $k=>$vo): ?><tr>
							<td class="el-table_1_column_1">
								<div class="cell cellnum"><?php echo ($vo['id']); ?></div>
							</td>
							<td class="el-table_1_column_2" alt="<?php echo ($vo['goods_class_id']); ?>">
								<div class="cell"><?php echo ($vo['goods_class_name']); ?></div>
							</td>
							<td class="el-table_1_column_3">
								<div class="cell"><?php echo ($vo['goods_name']); ?></div>
							</td>
							<td class="el-table_1_column_4">
								<div class="cell"><?php echo ($vo['goods_edit_time']); ?></div>
							</td>
							<td class="el-table_1_column_5">
								<div class="cell">
									<button type="button" class="btn_s1" alt="<?php echo ($vo['id']); ?>">
										<span>编辑</span>
									</button>
									<button type="button" class="btn_s2">
										<span><a href="<?php echo U('Admin/Page/index',array('keywords'=>$vo['id'],'key_id'=>3,'page_state'=>3,'typeid'=>0));?>" style="color: #0093d4;">查看页面</a></span>
									</button>
								</div>
							</td>
						</tr><?php endforeach; endif; ?>
				</tbody>
			</table>
		</div>
		<div class="pages">
			<?php echo ($pages); ?>
		</div>
	</div>
</div>
<div class="FixedBack">
	<!--  添加商品  -->
	<div class="AddCase">
		<div class="h3">添加商品</div>
		<div class="close"></div>
		<div class="wraning">以下信息不会在商品详情页中显示，认真填写将有助于oCPA转化获得更好效果</div>
		<div class="AddForm">
			<form>
				<div class="AddLabel">
					<span class="TopName"><i>*</i>商品名称</span>
					<label>
						<input type="text" name="SHName" class="SHName" placeholder="请填写商品名称" maxlength="25"/>
					</label>
					<div class="RexExp">请填写商品名称</div>
					<div class="ts">
						<div class="TsMed">
							<div class="TsMedH3">商品名称：用于描述页面中售卖的商品</div>
							建议：售卖同种商品的页面，请选择同一个商品名称。如：新建多个页面用于出售休闲男装，可先添加商品“休闲男装”，后为新建页面选择该名称
						</div>
					</div>
				</div>
				<div class="AddLabel">
					<span class="TopName"><i>*</i>商品类名</span>
					<div class="ThreeCon">
						<input type="text" readonly = "readonly" class="ThreeConTop Product_class" placeholder="请选择商品类名" value = "" DateV = "0"/>
						<input type="hidden" name="goods_class_id" value=""/>
						<input type="hidden" name="goods_id" value=""/>
						<!--<div class="ThreeConTop" value = '0'>请选择商品类名</div>-->
						<div class="ThreeList">
							<div class="tl_s1 White">
								<ul>
									<?php if(is_array($getclass)): foreach($getclass as $key=>$one): ?><li <?php if(!empty($one['_data'])): ?>class="active"<?php endif; ?>>
										<span class="blue" alt="<?php echo ($one['id']); ?>"><?php echo ($one['name']); ?></span>
										<?php if(!empty($one['_data'])): ?><div class="White tl_s2">
												<ul>
													<?php if(is_array($one['_data'])): foreach($one['_data'] as $key=>$two): ?><li <?php if(!empty($two['_data'])): ?>class="active"<?php endif; ?>><span class="blue" alt="<?php echo ($two['id']); ?>"><?php echo ($two['name']); ?></span>
														<?php if(!empty($two['_data'])): ?><div class="White tl_s3">
																<ul>
																	<?php if(is_array($two['_data'])): foreach($two['_data'] as $key=>$three): ?><li><span alt="<?php echo ($three['id']); ?>"><?php echo ($three['name']); ?></span></li><?php endforeach; endif; ?>
																</ul>
															</div><?php endif; ?>
														</li><?php endforeach; endif; ?>
												</ul>
											</div><?php endif; ?>
										</li><?php endforeach; endif; ?>
								</ul>
							</div>
						</div>
					</div>
					<div class="RexExp">请选择商品类目</div>
				</div>
				<div class="AppendBtns">
					<button type="button" class="AppendClose">取消</button>
					<button type="button" class="AppendTo AppendToTxt">保存</button>
				</div>
			</form>
		</div>
	</div>
</div>
<div class="tipsSave">
	<div class="saveTip">
		<div class="h3">提示</div>
		<div class="close"></div>
		<div class="saveContent">
			<p>商品新的名称不能和其他商品重复</p>
		</div>
		<div class="saveBtns">
			<button type="button" class="saveTo">确定</button>
		</div>
	</div>
</div>
<script src="/Public/Admin/js/jquery-1.12.4.js"></script>
<script src="/Public/Admin/js/swiper.min.js"></script>
<script src="/Public/Admin/js/colpack.js"></script>
<script src="/Public/Admin/js/main.js?v=<?php echo time();?>"></script>
</body>
</html>